package com.dql.study.mybatis_plus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dql.study.mybatis_plus.entity.User;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @Author: DQL
 * @Date: 2022/4/22 16:30
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    /**
     * 通过id返回map
     * @param id
     * @return
     */
    @MapKey("id")
    Map<String, Object> selectMapById(Long id);
}
